package com.tianji.learning.controller;


import com.tianji.common.domain.dto.PageDTO;
import com.tianji.learning.domain.dto.QuestionFormDTO;
import com.tianji.learning.domain.vo.QuestionAdminVO;
import com.tianji.learning.domain.vo.QuestionVO;
import com.tianji.learning.query.QuestionAdminPageQuery;
import com.tianji.learning.query.QuestionPageQuery;
import com.tianji.learning.service.IInteractionQuestionService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.*;

/**
 * <p>
 * 互动提问的问题表 前端控制器
 * </p>
 *
 * @author 彬哥
 * @since 2025-07-01
 */
@Api(tags = "互动提问的问题相关接口-管理端")
@RestController
@RequestMapping("/admin/questions")
@RequiredArgsConstructor
public class InteractionAdminQuestionController {
    private final IInteractionQuestionService questionService;

    /**
     * 分页查询互动问题-管理端
     * @param query
     * @return
     */
    @ApiOperation("分页查询互动问题-管理端")
    @GetMapping()
    public PageDTO<QuestionAdminVO> adminPageQuery(QuestionAdminPageQuery query) {
        return questionService.adminPageQuery(query);
    }

}
